package com.example.demo.common.service.mail;

/**
 * Created by Mojo on 2017/9/17.
 */
public interface MailService {
	/**
	 * 发送简单文本邮件
	 * @param to
	 * @param subject
	 * @param content
	 */
	void sendSimpleMail(String to, String subject, String content)throws Exception;

	/**
	 * 发送html邮件
	 * @param to
	 * @param subject
	 * @param content
	 */
	void sendHtmlMail(String to, String subject, String content)throws Exception;

	/**
	 * 发送带附件的邮件
	 * @param to
	 * @param subject
	 * @param content
	 * @param filePath
	 * @throws Exception
	 */
	void sendAttachmentsMail(String to, String subject, String content, String filePath) throws Exception;

	/**
	 * 发送嵌入静态资源的邮件
	 * @param to
	 * @param subject
	 * @param content
	 * @param rscPath
	 * @param rscId
	 * @throws Exception
	 */
	void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId) throws Exception;
}
